import Relay from "react-relay";

export default class deleteEnterpriseServiceDicMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { deleteEnterpriseServiceDic }`;
    }

    getVariables() {
        return {
            argsInput: {
                dicId:this.props.dicId,
                enid: this.props.enid
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on deleteEnterpriseServiceDicPayload {
            data {
                errorCode
                value
                token
                totalResult
                id
                enterpriseServiceDic{
                    parentId
                    name
                    dicId
                    enid
                    level
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on deleteEnterpriseServiceDicPayload {
           data {
                errorCode
                value
                token
                totalResult
                id
                enterpriseServiceDic{
                    parentId
                    name
                    dicId
                    enid
                    level
                }
            }
                }
            `]
        }];
    }

}